package user;

public class NormalUserNameException extends RuntimeException{  //如果继承的是Exception就会变成受查异常   而继承RuntimeException就是运行时异常
        public String name="曹俊杰";
        public NormalUserNameException() {
            super();
        }
        public NormalUserNameException(String str) {
            super(str);
        }
        public void normalUserNameException(String name) {
            if(!this.name.equals(name)) {
                throw new NormalUserNameException("普通成员用户名输入有误!");
            }
        }
}
